// @ts-ignore
/* eslint-disable */

import { advertisingRequest, apiRequest } from '@/utils/HttpRequest';
//import {NodeData, OrgItem} from "@ant-design/charts";

export async function findAdvertisingByPageList(params?: any) {
  //SwaggerResources

  return advertisingRequest.getList<API.LoginLog>('findByBackList');
}

export async function editAdvertising(params: any) {
  return advertisingRequest.post<any>('edit', params);
}

export async function editAdvertisingByDelete(id: any) {
  return advertisingRequest.post<any>('byDelete?id=' + id, { id: id });
}

export async function findNavigationByPageList(params?: any) {
  //SwaggerResources

  return apiRequest.getList<API.LoginLog>('navigation/findByBackList', params);
}

export async function editNavigation(params: any) {
  return apiRequest.post<any>('navigation/edit', params);
}
export async function editNavigationByDelete(id: any) {
  return apiRequest.post<any>('navigation/byDelete?id=' + id, { id: id });
}
